﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sparkle.Hosting;

namespace Sparkle.Wpf.Demo.UI
{
    public abstract class ObjectSelectorController<T> : IViewModel
        where T:IModel
    {
        private T _t ;
        #region IViewModel Members

        public virtual IModel Model
        {
            get { return _t as IModel;}
            set { _t = (T)value ; }
        }

        #endregion

        public virtual void Select()
        {
            ;
        }

        public virtual void Clear()
        {
            ;
        }

        public virtual void Add()
        {
            ;
        }
    }
}
